dojo.declare("DCustomerHomePg", wm.Page, {
start: function() {
this.vVendorMinAmount = 0;
//this.svProjectServices.input.setValue("projectId", wm.Page.getPage("Main").vProjectId);
//this.svProjectServices.update();
},
"preferredDevice": "desktop",
listProjectServicesSelect1: function(inSender, inItem) {
// var serviceId = this.listProjectServices.selectedItem.data.serviceId;
// this.listProjectServiceVendors.setDataSet(this.svProjectAllVendors.setQuery({
//      serviceId: serviceId
//  }));
},
listProjectServicesSelect: function(inSender, inItem) {
this.vPageBack = "VENDORS";
// this.svProjectSvcVendors.input.setValue("projectId", wm.Page.getPage("MobileMainPg").vProjectId);
// this.svProjectSvcVendors.update();
this.layerVendors.activate();
},
listProjectServicesCustomeraddressFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
if (inValue) {
return inValue;
} else {
return "";
}
},
tbServicesClick1: function(inSender) {
// this.listProjectServices.clear();
//this.svProjectServices.clearData();
// this.svProjectServices.update();
},
layerVendorItemsShow: function(inSender) {
if (wm.Page.getPage("DMCustomerOrderSelectPg")) {
wm.Page.getPage("DMCustomerOrderSelectPg").lvVendorItems.clearData();
wm.Page.getPage("DMCustomerOrderSelectPg").lvVendorItems.update();
}
},
layerVendorClosedShow: function(inSender) {
this.layerVendorItemsShow(inSender);
},
tbPastOrdersClick1: function(inSender) {
var customerPg = wm.Page.getPage("DCustomerOrderHistoryPg");
this.vPageBack = "CUSTOMER_HISTORY";
if (customerPg) {
customerPg.lvMyOrders.update();
}
},
checkVendorShopTime: function(inSender, inItem) {
var selectedData = inSender.selectedItem.getData();
this.vVendorMinAmount = selectedData.minOrderAmt;
this.svShopTime.update();
},
svShopTimeSuccess: function(inSender, inDeprecated) {
//  alert(inSender.getData().dataValue);
var shopTime = inSender.getData().dataValue;
var index = this.listProjectServices.getSelectedIndex();
this.vPageBack = "VENDOR_ITEMS";
if (index != -1) {
var ptoVar = this.listProjectServiceVendors.selectedItem.data.customer.data.pto;
var ptoMsg = this.listProjectServiceVendors.selectedItem.data.customer.data.ptoMessage;
if (ptoMsg === null || ptoMsg.length === 0 || ptoMsg === "") {
ptoMsg = "Shop is closed";
}
if (ptoVar) {
this.layerVendorClosed.activate();
this.labelVendorClosed.setCaption(ptoMsg);
} else {
if (shopTime) {
this.svItemCategory.update();
if (wm.Page.getPage("DMCustomerOrderSelectPg")) {
wm.Page.getPage("DMCustomerOrderSelectPg").layerSelectCategory.activate();
}
this.layerVendorItems.activate();
} else {
this.layerVendorClosed.activate();
this.labelVendorClosed.setCaption(ptoMsg);
}
}
}
},
svProjectServicesSuccess: function(inSender, inDeprecated) {
},
svProjectAllVendorsSuccess: function(inSender, inDeprecated) {
},
svItemCategorySuccess: function(inSender, inDeprecated) {
},
backClick: function(inSender) {
if (this.vPageBack === 'VENDORS') {
this.layerServices.activate();
}
if (this.vPageBack === 'VENDOR_ITEMS') {
this.layerVendors.activate();
this.vPageBack = 'VENDORS';
}
if (this.vPageBack === 'VENDOR_ITEM_CATEGORY') {
if (wm.Page.getPage("DMCustomerOrderSelectPg")) {
wm.Page.getPage("DMCustomerOrderSelectPg").layerSelectCategory.activate();
}
this.vPageBack = 'VENDOR_ITEMS';
}
if (this.vPageBack === 'CHECK_OUT') {
if (wm.Page.getPage("DMCustomerOrderSelectPg")) {
wm.Page.getPage("DMCustomerOrderSelectPg").layerSelectOrder.activate();
}
this.vPageBack = 'VENDOR_ITEM_CATEGORY';
}
if (this.vPageBack === 'CONFIRM_ORDER') {
if (wm.Page.getPage("DMCustomerOrderSelectPg")) {
wm.Page.getPage("DMCustomerOrderSelectPg").refreshVendorItemList();
wm.Page.getPage("DMCustomerOrderSelectPg").txtSearch.clear();
wm.Page.getPage("DMCustomerOrderSelectPg").layerSelectOrder.activate();
}
this.vPageBack = 'VENDOR_ITEM_CATEGORY';
}
if (this.vPageBack === 'CUSTOMER_HISTORY') {
this.layerOrderHistory.activate();
if (wm.Page.getPage("DMCustomerOrderHistoryPg")) {
wm.Page.getPage("DMCustomerOrderHistoryPg").layerOrders.activate();
}
}
if (this.vPageBack === 'CUSTOMER_ACCOUNT') {
this.layerMyAccount.activate();
}
},
tbUpdateAccountClick1: function(inSender) {
this.vPageBack = 'CUSTOMER_ACCOUNT';
},
back1Click: function(inSender) {
this.backClick(inSender);
},
BackClick1: function(inSender) {
this.tbServicesClick1(inSender);
},
tbServices1Click1: function(inSender) {
this.tbServicesClick1(inSender);
},
_end: 0
});

DCustomerHomePg.widgets = {
lvProjectServices: ["wm.LiveVariable", {"autoUpdate":false,"inFlightBehavior":"executeLast","type":"com.servicelivedb.data.ProjectServiceVendor"}, {}, {
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.ProjectServiceVendor","related":["customer","services","project"],"view":[
{"caption":"ProjectServiceVendorId","sortable":true,"dataIndex":"projectServiceVendorId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":1000,"subType":null,"widthUnits":"px"},
{"caption":"Active","sortable":true,"dataIndex":"active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1001,"subType":null,"widthUnits":"px"},
{"caption":"CustomerId","sortable":true,"dataIndex":"customer.customerId","type":"java.lang.Integer","displayType":"Number","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2000},
{"caption":"Address","sortable":true,"dataIndex":"customer.address","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2001},
{"caption":"Email","sortable":true,"dataIndex":"customer.email","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2002},
{"caption":"UpdatedDt","sortable":true,"dataIndex":"customer.updatedDt","type":"java.util.Date","displayType":"Date","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2003},
{"caption":"UpdatedBy","sortable":true,"dataIndex":"customer.updatedBy","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2004},
{"caption":"Active","sortable":true,"dataIndex":"customer.active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2005},
{"caption":"Password","sortable":true,"dataIndex":"customer.password","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2006},
{"caption":"Username","sortable":true,"dataIndex":"customer.username","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2007},
{"caption":"Name","sortable":true,"dataIndex":"customer.name","type":"java.lang.String","displayType":"Text","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2008},
{"caption":"PrimaryPhone","sortable":true,"dataIndex":"customer.primaryPhone","type":"java.lang.String","displayType":"Text","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2009},
{"caption":"SecondaryPhone","sortable":true,"dataIndex":"customer.secondaryPhone","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2010},
{"caption":"Type","sortable":true,"dataIndex":"customer.type","type":"java.lang.String","displayType":"Text","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2011},
{"caption":"AlternateContact","sortable":true,"dataIndex":"customer.alternateContact","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2012},
{"caption":"ServiceId","sortable":true,"dataIndex":"services.serviceId","type":"java.lang.Integer","displayType":"Number","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":3000},
{"caption":"ServiceName","sortable":true,"dataIndex":"services.serviceName","type":"java.lang.String","displayType":"Text","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":3001},
{"caption":"ProjectId","sortable":true,"dataIndex":"project.projectId","type":"java.lang.Integer","displayType":"Number","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":4000},
{"caption":"ProjectName","sortable":true,"dataIndex":"project.projectName","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":4001},
{"caption":"Address","sortable":true,"dataIndex":"project.address","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":4002},
{"caption":"Active","sortable":true,"dataIndex":"project.active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":4003},
{"caption":"PrimaryPhone","sortable":true,"dataIndex":"project.primaryPhone","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":4004},
{"caption":"SecondaryPhone","sortable":true,"dataIndex":"project.secondaryPhone","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":4005},
{"caption":"Email","sortable":true,"dataIndex":"project.email","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":4006},
{"caption":"Website","sortable":true,"dataIndex":"project.website","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":4007},
{"caption":"Description","sortable":true,"dataIndex":"project.description","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":4008},
{"caption":"Image","sortable":true,"dataIndex":"project.image","type":"byte","displayType":"Number","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":4009}
]}, {}],
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"true","targetProperty":"filter.active"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"[main].svUserName.dataValue","targetProperty":"filter.customer.email"}, {}]
}]
}],
vVendorId: ["wm.Variable", {"type":"NumberData"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"listProjectServices.selectedItem.customer.customerId","targetProperty":"dataSet.dataValue"}, {}]
}]
}],
ncServices: ["wm.NavigationCall", {}, {}, {
input: ["wm.ServiceInput", {"type":"gotoLayerInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"layerServices","targetProperty":"layer"}, {}]
}]
}]
}],
svProjectAllVendors: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"getAllVendorsForProject","service":"serviceliveDB"}, {"onSuccess":"svProjectAllVendorsSuccess"}, {
input: ["wm.ServiceInput", {"type":"getAllVendorsForProjectInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"true","targetProperty":"active"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"listProjectServices.selectedItem.project.projectId","targetProperty":"projectId"}, {}]
}]
}]
}],
svItemCategory: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"getVendorItemType","service":"serviceliveDB"}, {"onSuccess":"svItemCategorySuccess"}, {
input: ["wm.ServiceInput", {"type":"getVendorItemTypeInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"listProjectServiceVendors.selectedItem.services.serviceId","targetProperty":"serviceId"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"listProjectServiceVendors.selectedItem.customer.customerId","targetProperty":"vendorId"}, {}]
}]
}]
}],
svShopTime: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"getShoptimings","service":"RegistrationService"}, {"onSuccess":"svShopTimeSuccess"}, {
input: ["wm.ServiceInput", {"type":"getShoptimingsInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"listProjectServiceVendors.selectedItem.customer.customerId","targetProperty":"vendorId"}, {}]
}]
}]
}],
vVendorMinAmount: ["wm.Variable", {"type":"NumberData"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"listProjectServiceVendors.selectedItem.customer.min_order_amount","targetProperty":"dataSet.dataValue"}, {}]
}]
}],
vPageBack: ["wm.Variable", {}, {}],
svProjectServices: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"getProjectServices","service":"serviceliveDB","startUpdate":true}, {"onSuccess":"svProjectServicesSuccess"}, {
input: ["wm.ServiceInput", {"type":"getProjectServicesInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"true","targetProperty":"active"}, {}],
wire1: ["wm.Wire", {"expression":"1000","targetProperty":"projectId"}, {}]
}]
}]
}],
lvProjectServiceVendors: ["wm.LiveVariable", {"inFlightBehavior":"executeLast","type":"com.servicelivedb.data.ProjectServiceVendor"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"listProjectServices.selectedItem.project.projectId","targetProperty":"filter.project.projectId"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"listProjectServices.selectedItem.services.serviceId","targetProperty":"filter.services.serviceId"}, {}],
wire2: ["wm.Wire", {"expression":undefined,"source":"listProjectServices.selectedItem.customer.customerId","targetProperty":"filter.customer.customerId"}, {}]
}],
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.ProjectServiceVendor","related":["customer","services","project"],"view":[
{"caption":"ProjectServiceVendorId","sortable":true,"dataIndex":"projectServiceVendorId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":1000,"subType":null,"widthUnits":"px"},
{"caption":"Active","sortable":true,"dataIndex":"active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1001,"subType":null,"widthUnits":"px"},
{"caption":"CustomerId","sortable":true,"dataIndex":"customer.customerId","type":"java.lang.Integer","displayType":"Number","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2000},
{"caption":"Email","sortable":true,"dataIndex":"customer.email","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2002},
{"caption":"Active","sortable":true,"dataIndex":"customer.active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2005},
{"caption":"Name","sortable":true,"dataIndex":"customer.name","type":"java.lang.String","displayType":"Text","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2008},
{"caption":"PrimaryPhone","sortable":true,"dataIndex":"customer.primaryPhone","type":"java.lang.String","displayType":"Text","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2009},
{"caption":"Pto","sortable":true,"dataIndex":"customer.pto","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2013},
{"caption":"PtoMessage","sortable":true,"dataIndex":"customer.ptoMessage","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2014},
{"caption":"Vendor_msg","sortable":true,"dataIndex":"customer.vendor_msg","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2015},
{"caption":"Min_order_amount","sortable":true,"dataIndex":"customer.min_order_amount","type":"java.lang.Integer","displayType":"Number","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2016},
{"caption":"Shop_time","sortable":true,"dataIndex":"customer.shop_time","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":2017},
{"caption":"ServiceId","sortable":true,"dataIndex":"services.serviceId","type":"java.lang.Integer","displayType":"Number","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":3000},
{"caption":"ServiceName","sortable":true,"dataIndex":"services.serviceName","type":"java.lang.String","displayType":"Text","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":3001},
{"caption":"ProjectId","sortable":true,"dataIndex":"project.projectId","type":"java.lang.Integer","displayType":"Number","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":4000},
{"caption":"ProjectName","sortable":true,"dataIndex":"project.projectName","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":4001}
]}, {}]
}],
ldServices: ["wm.LoadingDialog", {"caption":"Loading...Services"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"mainLayers","targetProperty":"widgetToCover"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"lvProjectServices","targetProperty":"serviceVariableToTrack"}, {}]
}]
}],
ldShopTime: ["wm.LoadingDialog", {"serviceVariableToTrack":["svShopTime"]}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"layoutBox","targetProperty":"widgetToCover"}, {}]
}]
}],
ldProjectServiceVendor: ["wm.LoadingDialog", {"caption":"Loading...Vendors","serviceVariableToTrack":["svProjectAllVendors"]}, {}],
layoutBox: ["wm.Layout", {"horizontalAlign":"center","styles":{"backgroundImage":"resources/images/mobile/background_m.jpg"},"verticalAlign":"top","width":"903px"}, {}, {
panel3: ["wm.EmphasizedContentPanel", {"border":"0,0,1,0","height":"75px","horizontalAlign":"center","layoutKind":"left-to-right","styles":{"backgroundColor":"#72cde9"},"verticalAlign":"middle","width":"100%"}, {}, {
toggleButtonPanel1: ["wm.ToggleButtonPanel", {"buttonMargins":"5","desktopHeight":"35px","height":"35px","horizontalAlign":"center","mobileHeight":"35px","verticalAlign":"top","width":"50%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"tbServices","targetProperty":"currentButton"}, {}]
}],
tbServices: ["wm.Button", {"border":"0,1,0,0","caption":"Services","height":"100%","margin":"5","styles":{},"width":"100%"}, {"onclick":"layerServices","onclick1":"tbServicesClick1"}],
tbPastOrders: ["wm.Button", {"border":"0,1,0,0","caption":"Order History","height":"100%","margin":"5","width":"100%"}, {"onclick":"layerOrderHistory","onclick1":"tbPastOrdersClick1"}],
tbUpdateAccount: ["wm.Button", {"border":"0","caption":"My Account","height":"100%","margin":"5","width":"100%"}, {"onclick":"tbUpdateAccountClick1","onclick1":"layerMyAccount"}]
}]
}],
panel5: ["wm.Panel", {"height":"40px","horizontalAlign":"center","verticalAlign":"top","width":"100%"}, {}, {
btBack: ["wm.Button", {"border":"1","caption":"Back"}, {"onclick":"backClick"}]
}],
mainLayers: ["wm.Layers", {"border":"1,0,1,0","borderColor":"#888888","defaultLayer":5,"transition":"fade"}, {}, {
layerOrderHistory: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
panelServicesList1: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
pageContainer1: ["wm.PageContainer", {"deferLoad":true,"pageName":"DCustomerOrderHistoryPg","styles":{},"subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}]
}],
layerMyAccount: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {"onShow":"layerVendorItemsShow"}, {
panelServicesList2: ["wm.Panel", {"height":"100%","horizontalAlign":"center","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
pageContainer2: ["wm.PageContainer", {"deferLoad":true,"pageName":"DCustomerAccountPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}]
}],
layerVendorItems: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
pcItemList: ["wm.PageContainer", {"deferLoad":true,"pageName":"DMCustomerOrderSelectPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}],
layerVendors: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
panelVendors: ["wm.Panel", {"height":"100%","horizontalAlign":"center","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
listProjectServiceVendors: ["wm.List", {"_classes":{"domNode":["MobileListStyle"]},"columns":[
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"","mobileColumn":false},
{"show":false,"field":"projectServiceVendorId","title":"ProjectServiceVendorId","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"active","title":"Active","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.customerId","title":"Customer.customerId","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.email","title":"Customer.email","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.active","title":"Customer.active","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"services.serviceName","title":"Services.serviceName","width":"100%","align":"left","formatFunc":"","editorProps":null,"mobileColumn":true},
{"show":true,"field":"customer.name","title":"Customer.name","width":"100%","align":"left","formatFunc":"","mobileColumn":true},
{"show":false,"field":"customer.primaryPhone","title":"Customer.primaryPhone","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.pto","title":"Customer.pto","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.ptoMessage","title":"Customer.ptoMessage","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.vendor_msg","title":"Customer.vendor_msg","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.min_order_amount","title":"Customer.min_order_amount","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.shop_time","title":"Customer.shop_time","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"services.serviceId","title":"Services.serviceId","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.projectId","title":"Project.projectId","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.projectName","title":"Project.projectName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"controller":"rightarrow","width":"20px","title":"-","field":"_rightArrow","mobileColumn":true}
],"headerVisible":false,"height":"100%","isNavigationMenu":true,"margin":"5","minDesktopHeight":100,"minHeight":100,"rightNavArrow":true,"styleAsGrid":false,"styles":{},"width":"50%"}, {"onSelect":"checkVendorShopTime"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lvProjectServiceVendors","targetProperty":"dataSet"}, {}]
}]
}]
}]
}],
layerVendorClosed: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {"onShow":"layerVendorClosedShow"}, {
panel4: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"middle","width":"100%"}, {}, {
labelVendorClosed: ["wm.Label", {"align":"center","caption":"Vendor Closed For Orders","height":"200px","padding":"4","singleLine":false,"styles":{"fontWeight":"bolder","fontSize":"18px","color":"#df1f1f"},"width":"100%"}, {}]
}]
}],
layerServices: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"center","themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
panelOrderResultDisplay: ["wm.Panel", {"height":"30px","horizontalAlign":"left","layoutKind":"left-to-right","styles":{"color":"#1b1919"},"verticalAlign":"top","width":"60%"}, {}, {
labelOrderResult: ["wm.Label", {"align":"center","caption":"","padding":"4","styles":{"color":"#1445ae","backgroundColor":"#eef0da"},"width":"100%"}, {}]
}],
panelServicesList: ["wm.Panel", {"height":"100%","horizontalAlign":"center","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
panel1: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
pAdd1: ["wm.Picture", {"height":"166px","source":"resources/images/adds/saleAdd1.jpg","width":"100%"}, {}],
pAppAdd2: ["wm.Picture", {"height":"225px","source":"resources/images/adds/saleOffer2.jpg","width":"100%"}, {}]
}],
listProjectServices: ["wm.List", {"_classes":{"domNode":["MobileListStyle"]},"columns":[
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"","mobileColumn":false},
{"show":false,"field":"projectServiceVendorId","title":"ProjectServiceVendorId","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"active","title":"Active","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.customerId","title":"Customer.customerId","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.address","title":"Customer.address","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.email","title":"Customer.email","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.updatedDt","title":"Customer.updatedDt","width":"80px","align":"left","formatFunc":"wm_date_formatter","mobileColumn":false},
{"show":false,"field":"customer.updatedBy","title":"Customer.updatedBy","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.active","title":"Customer.active","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.password","title":"Customer.password","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.username","title":"Customer.username","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.name","title":"Customer.name","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.primaryPhone","title":"Customer.primaryPhone","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.secondaryPhone","title":"Customer.secondaryPhone","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.type","title":"Customer.type","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"customer.alternateContact","title":"Customer.alternateContact","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"services.serviceId","title":"Services.serviceId","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"services.serviceName","title":"Services.serviceName","width":"100%","align":"left","formatFunc":"","mobileColumn":true},
{"show":false,"field":"project.projectId","title":"Project.projectId","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.projectName","title":"Project.projectName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.address","title":"Project.address","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.active","title":"Project.active","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.primaryPhone","title":"Project.primaryPhone","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.secondaryPhone","title":"Project.secondaryPhone","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.email","title":"Project.email","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.website","title":"Project.website","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"project.description","title":"Project.description","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"controller":"rightarrow","width":"20px","title":"-","field":"_rightArrow","mobileColumn":true}
],"headerVisible":false,"height":"100%","isNavigationMenu":true,"margin":"5","minDesktopHeight":100,"minHeight":100,"rightNavArrow":true,"styleAsGrid":false,"styles":{}}, {"onSelect":"listProjectServicesSelect","onSelect1":"listProjectServicesSelect1","onSelect2":"lvProjectServiceVendors"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lvProjectServices","targetProperty":"dataSet"}, {}]
}]
}],
panel2: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
pAddApp1: ["wm.Picture", {"height":"225px","source":"resources/images/adds/saleApp1.jpg","width":"100%"}, {}],
pAdd2: ["wm.Picture", {"height":"182px","source":"resources/images/adds/saleOffer.jpg","width":"100%"}, {}]
}]
}]
}]
}]
}]
};

DCustomerHomePg.prototype._cssText = '';
DCustomerHomePg.prototype._htmlText = '';